int main(int argc, char *argv[]) {
    QApplication app(argc, argv);
    MainWindow mainWindow;
    mainWindow.show();

    // 动态添加小部件作为演示
    mainWindow.addWidget("Button 1", "This is a description for Button 1");
    mainWindow.addWidget("Button 2", "This is a description for Button 2");
    // ...此处可以根据需求继续添加更多小部件

    return app.exec();
}